package com.tpp.threat_perception_platform.pojo;

/**
 * 
 * @TableName app_vulnerability
 */
public class AppVulnerability {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private String appVulPath;

    /**
     * 
     */
    private String requestType;

    /**
     * 
     */
    private String payload;

    /**
     * 
     */
    private String appVulFlag;

    /**
     * 
     */
    private String appVulnerabilityName;

    /**
     * 
     */
    private String appVulnerabilityDesc;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getAppVulPath() {
        return appVulPath;
    }

    /**
     * 
     */
    public void setAppVulPath(String appVulPath) {
        this.appVulPath = appVulPath;
    }

    /**
     * 
     */
    public String getRequestType() {
        return requestType;
    }

    /**
     * 
     */
    public void setRequestType(String requestType) {
        this.requestType = requestType;
    }

    /**
     * 
     */
    public String getPayload() {
        return payload;
    }

    /**
     * 
     */
    public void setPayload(String payload) {
        this.payload = payload;
    }

    /**
     * 
     */
    public String getAppVulFlag() {
        return appVulFlag;
    }

    /**
     * 
     */
    public void setAppVulFlag(String appVulFlag) {
        this.appVulFlag = appVulFlag;
    }

    /**
     * 
     */
    public String getAppVulnerabilityName() {
        return appVulnerabilityName;
    }

    /**
     * 
     */
    public void setAppVulnerabilityName(String appVulnerabilityName) {
        this.appVulnerabilityName = appVulnerabilityName;
    }

    /**
     * 
     */
    public String getAppVulnerabilityDesc() {
        return appVulnerabilityDesc;
    }

    /**
     * 
     */
    public void setAppVulnerabilityDesc(String appVulnerabilityDesc) {
        this.appVulnerabilityDesc = appVulnerabilityDesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AppVulnerability other = (AppVulnerability) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAppVulPath() == null ? other.getAppVulPath() == null : this.getAppVulPath().equals(other.getAppVulPath()))
            && (this.getRequestType() == null ? other.getRequestType() == null : this.getRequestType().equals(other.getRequestType()))
            && (this.getPayload() == null ? other.getPayload() == null : this.getPayload().equals(other.getPayload()))
            && (this.getAppVulFlag() == null ? other.getAppVulFlag() == null : this.getAppVulFlag().equals(other.getAppVulFlag()))
            && (this.getAppVulnerabilityName() == null ? other.getAppVulnerabilityName() == null : this.getAppVulnerabilityName().equals(other.getAppVulnerabilityName()))
            && (this.getAppVulnerabilityDesc() == null ? other.getAppVulnerabilityDesc() == null : this.getAppVulnerabilityDesc().equals(other.getAppVulnerabilityDesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAppVulPath() == null) ? 0 : getAppVulPath().hashCode());
        result = prime * result + ((getRequestType() == null) ? 0 : getRequestType().hashCode());
        result = prime * result + ((getPayload() == null) ? 0 : getPayload().hashCode());
        result = prime * result + ((getAppVulFlag() == null) ? 0 : getAppVulFlag().hashCode());
        result = prime * result + ((getAppVulnerabilityName() == null) ? 0 : getAppVulnerabilityName().hashCode());
        result = prime * result + ((getAppVulnerabilityDesc() == null) ? 0 : getAppVulnerabilityDesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", appVulPath=").append(appVulPath);
        sb.append(", requestType=").append(requestType);
        sb.append(", payload=").append(payload);
        sb.append(", appVulFlag=").append(appVulFlag);
        sb.append(", appVulnerabilityName=").append(appVulnerabilityName);
        sb.append(", appVulnerabilityDesc=").append(appVulnerabilityDesc);
        sb.append("]");
        return sb.toString();
    }
}